package com.zqp.security.core.validator.code.image;
/**
 * 
* @author zqp
* @version2017年12月21日 
* @description
 */

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

import com.zqp.security.core.validator.code.ValidateCode;

public class ImageCode extends ValidateCode{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1275398839473032623L;
	private BufferedImage image;//图片

	public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
		super(code, expireTime);
		this.image = image;
	}
	/**
	 * 多少秒之内过期
	 * @param image
	 * @param code
	 * @param expireInt
	 */
	public ImageCode(BufferedImage image, String code, int expireInt) {
		super(code, expireInt);
		this.image = image;
	}

	public BufferedImage getImage() {
		return image;
	}

	public void setImage(BufferedImage image) {
		this.image = image;
	}

	

}
